#ifndef __KEY_EVENT_CVT__
#define __KEY_EVENT_CVT__
#include "MCUConfig.h"

// key �� Fun�Ķ���������ӳ�䣬���ram�㹻������������ӳ��

enum FUN_STATE
{
	FUN_NONE = 0,
	FUN_POINT = 1,
	FUN_POINT1 = 2,
	FUN_AIRFRYER,
	FUN_ROAST,
	FUN_BRIOL,
	FUN_BAKE,
	FUN_PREHEAT,
	FUN_KEEPWARM,
	FUN_PIZZA,
	FUN_DEHYDRATE,
	FUN_TEMPADD,
	FUN_TEMPSUB,
	FUN_TIMEADD,
	FUN_TIMESUB,
	FUN_TEMP,
	FUN_TIME,
	FUN_L,
	FUN_R,
	FUN_START,
	FUN_SINCFINISH,
	FUN_SHAKE,
	FUN_DUALCLOCK,
	FUN_POWER_RED,
	FUN_POWER,
	FUN_HIDE

};

enum KEY_STATE
{
	KEY_NONE = 0,
	KEY1 = 1,
	KEY2,
	KEY3,
	KEY4,
	KEY5,
	KEY6,
	KEY7,
	KEY8,
	KEY9,
	KEY10,
	KEY11,
	KEY12,
	KEY13,
	KEY14,
	KEY15,
	KEY16,
	KEY17,
	KEY18,
	KEY19,
	KEY_TIMESUB_CONTINUE,
	KEY_TIMEADD_CONTINUE,
	KEY_TEMPSUB_CONTINUE,
	KEY_TEMPADD_CONTINUE,
	KEY_CUSTOM_CHECK,
	KEY_PRODUCT_CHECK,
	KEY_CONNECT_WIFI,
	KEY_DOOR_OPEN,
	KEY_DOOR_CLOSE
};

u8 KeyToFun(u32 KeyValue);
u32 KeyEventConvetor(void);

#endif
